import React from 'react';
import { connect } from 'dva';
import PageContent from '../../../components/PageContent';
import ProjectTable from './ProjectTable';

@connect(({ project, loading }) => ({ project, loading: loading.models.project }))
class PrjTable extends React.Component {

  render() {
    const { dispatch, loading, project: { projectinfo,projectlist } } = this.props;
    // console.log("jira数据和项目数据",projectlist,projectinfo)
    const projectTableProps = {
      dispatch,
      loading,
      projectinfo,
      projectlist,

    };
    return (
      <PageContent title="项目管理" >
        <ProjectTable {...projectTableProps} />
      </PageContent>
    );
  }
}

export default PrjTable;
